<template>
    <div class="ghifprteg">
        <h1 class="difijh">{{fsafsafsafsa.title}}</h1>
        <p class="bbsfijgh">
        <span>发表时间:{{fsafsafsafsa.add_time|dateFormat}}</span>
        <span>点击{{fsafsafsafsa.click}}次数</span>
        </p>
        <hr>
        <div class="mwpwk" v-html="fsafsafsafsa.content"></div>
       <discuss :id="this.id"></discuss>
    </div>
</template>
<script>
import discuss from "../subComponents/discuss"
export default {
    data() {
        return {
            id:this.$route.params.id,
            fsafsafsafsa:{}
        }
    },
    created() {
    this.gertdfd();
  },
  methods: {
    gertdfd() {
      this.$http
        .get("http://www.liulongbin.top:3005/api/getnew/"+this.id)
        .then(result => {
          // console.log(result.body);
          if (result.body.status ===0) {
            this.fsafsafsafsa = result.body.message[0];
          }else{
              console.log(请求不合格);
              
          }
        });
    }
  },
  components:{
    discuss
  }
}
</script>
<style lang="less" scoped>
.ghifprteg{
    padding: 0 4px;
.difijh{
font-size: 16px;
text-align: center;
color: red
};
.bbsfijgh{
font-size: 13px;
color: blue;
display: flex;
justify-content: space-between
};
.mwpwk{

}
}
</style>
